<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box{

            width: 100px;
            height: 100px;
            background-color: red;
            /* 过渡动画 */
            transition: all 1s ease-in-out 0s;

            
            
        }
        .box:hover{
            /* 位置变化 */
            transform: translate(-50px, -50px) rotate(45deg);
/* 
            width: 200px;
            height: 200px;
            background-color: blue */

        }
    </style>
</head>
<body>
    <h1>transition动画</h1>
    <div class="box">

    </div><span>11</span>
    <p>动画效果</p>

</body>
</html>